package examples;

import search.*;
/**
 * Write a description of class SolveTower here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class SolveTower
{
    public static void test()
    {
        int goal = 23;
        Tower initialTower = new Tower(new int[]{1,2,4,5,6,7});
        TowerStateSpace stateGraph = new TowerStateSpace(initialTower);
        TowerSolveVisitor solver = new TowerSolveVisitor(initialTower, goal);
        SearchNode<TowerState> solution = stateGraph.accept(solver);
        System.out.println(solution.getState().getData());
        System.out.println("Steps needed " + solution.getCost());
    }
    
    public static void main(String[] args) {
		test();
	}
}
